#include <CommandCamera.h>
Public Member Functions | |
| CommandCamera (RightView *rightview, OSGWindows *osgwind) | |
| ~CommandCamera () | |
| void | ManipulateCamera () |
| void | YawLeft () |
| void | YawRight () |
| void | PitchUp () |
| void | PitchDown () |
| void | ZoomIn () |
| void | ZoomOut () |
| void | TopView () |
| void | ThreedView () |
| void | SideView () |
| void | MoveLeft () |
| void | MoveRight () |
| void | MoveUp () |
| void | MoveDown () |
Static Public Attributes | |
| static float | m_dCoordx |
| static float | m_dCoordy |
| static float | m_dCoordz |
| static float | m_dHeading |
| static float | m_dPitchValue |
| static float | m_dRotation |
| static Views | viewKind |
Protected Attributes | |
| RightView * | rightview_ |
| OSGWindows * | osgwind_ |
|
||||||||||||
|
CommandCamera constructor. This class can reach the camera of the rightview and viewer of the OsgWindows, since it will change the positions and angles of the camera of rightview and matrix of the viewer of the OsgWindows. The constuctor sets the rightview and osgwind parameters to the private variables of the class. |
|
|
CommandCamera destructor. |
|
|
Manipulate Camera() function takes the corresponding values of PitchValue, Heading, coordinates of the camera, rotation angle and translation value and makes the operations to make the camera matrix ready. Then it sets this matrix to the viewer of the osgwindows. |
|
|
MoveDownfunction. For 3D and side views, this function makes the camera move up for 10 units by the callback from the up key of the keyboard. For Top view, the camera moves in the scene without changing its height. |
|
|
MoveLeft function. This function makes the camera of the rightview move to the left by the callback from the right key of the keyboard. |
|
|
MoveRight function. This function makes the camera of the rightview move to the right by the callback from the right key of the keyboard. |
|
|
MoveUp function. For 3D and side views, this function makes the camera move up for 10 units by the callback from the up key of the keyboard. For Top view, the camera moves in the scene without changing its height. |
|
|
Pitch Down function. Makes the camera of the rightview pitch down for 10 degrees for each callback from the menu. |
|
|
Pitch Up function. Makes the camera of the rightview pitch up for 10 degrees for each callback from the menu. |
|
|
ThreedView function. Makes the camera of the rightview look from the side view by the callback from the button in the toolbox. The pitch up value is 0 degrees. |
|
|
ThreedView function. Makes the camera of the rightview look from the 3D view by the callback from the button in the toolbox. The pitch up value is -25 degrees. |
|
|
TopView function. Makes the camera of the rightview look from the top view by the callback from the button in the toolbox. The pitch up value is -90 degrees. |
|
|
Yaw Left function. Makes the camera of the rightview turn left for 10 dgrees for each callback from the menu |
|
|
Yaw Right function. Makes the camera of the rightview turn right for 10 degrees for each callback from the menu |
|
|
Zoom In function. Makes the camera of the rightview zoom in to the scene. For 3D and side views camera goes into the scene, for top view gets closer into the scene. |
|
|
Zoom Out function. Makes the camera of the rightview zoom out from the scene. For 3D and side views camera goes back from scene, for top view gets farther from the scene. |
|
|
x coordiante of the camera |
|
|
y coordiante of the camera |
|
|
z coordiante of the camera |
|
|
heading value of the camera ( camera looks left or right ) |
|
|
pitch value of the camera ( camera looks up or down ) |
|
|
rotation value of the camera |
|
|
|
|
|
|
|
|
A struct variable for determining the view ofthe camera; top, side or 3D view |
1.4.6-NO